
// 读取包装步骤数据：
import Relay from "react-relay";
export default class getProcessDemand extends Relay.Mutation {

    getMutation() {
        return Relay.QL`mutation { getProcessDemand }`;
    }

    getVariables() {
        return {
            input: {
                clientMutationId: this.props.clientMutationId,
                argsInput: this.props.argsInput
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on getProcessDemandPayload {
             getProcessDemand{
                    authorityId
                    totalResult
                    token
                    value
                    userId
                    processDemand{
                        ironPackCare
                        ironPackImg4
                        ironPackImg5
                        ironPackImg2
                        ironPackImg3
                        pdId
                        processDemandId
                        cutCare
                        sewProcessCare
                        cutImg5
                        sewProcessImg5
                        cutImg3
                        sewProcessImg3
                        cutImg4
                        sewProcessImg4
                        cutImg1
                        sewProcessImg1
                        cutImg2
                        sewProcessImg2
                        ironPackImg1
                    }
                    errorCode
                    id
              }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL` fragment on getProcessDemandPayload  {
                getProcessDemand{
                    authorityId
                    totalResult
                    token
                    value
                    userId
                    processDemand{
                        ironPackCare
                        ironPackImg4
                        ironPackImg5
                        ironPackImg2
                        ironPackImg3
                        pdId
                        processDemandId
                        cutCare
                        sewProcessCare
                        cutImg5
                        sewProcessImg5
                        cutImg3
                        sewProcessImg3
                        cutImg4
                        sewProcessImg4
                        cutImg1
                        sewProcessImg1
                        cutImg2
                        sewProcessImg2
                        ironPackImg1
                    }
                    errorCode
                    id
              }
                 }
            `]
        }];
    }

}
/**
 * Created by yoyoyk on 2017/5/9.
 */
